package service;

import java.util.List;

import dao.CustomerDao;
import entity.Customer;
import util.PageTools;

public class CustomerService {
private CustomerDao customerDao=new CustomerDao();
	
	public boolean insertCustomer(Customer customer) {
		return customerDao.insertCustomer(customer);
	}
	public boolean deleteCustomerByCid(int cid) {
		return customerDao.deleteCustomerByCid(cid);
	}
	public List<Customer> showCustomer(){
		return customerDao.selectCustomer();
	}
	public int counts() {
		return customerDao.counts();
	}
	public List<Customer> showCustomerByPage(PageTools pt){
		return customerDao.selectCustomerByPage(pt);
	}
	public Customer showCustomerByCid(int cid) {
		return customerDao.selectCustomerByCid(cid);
	}
	public boolean updateCustomer(Customer customer) {
		return customerDao.updateCustomer(customer);
	}

}
